/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dxfpresentation;

import java.awt.Frame;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import sembr.dao.reader.XmlFileReader;
import sembr.entities.ProjectSettings;
/**
 *
 * @author adriano
 */
public class SembrInitialWindow extends javax.swing.JFrame {

    /**
     * Creates new form SembrInitialWindow
     */
    public SembrInitialWindow() {
        
        initComponents();        
        pnlNewProject.setVisible(false);
        // default window size
        this.setSize(565, 490);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        fileChooser = new javax.swing.JFileChooser();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        btnNewProject = new javax.swing.JButton();
        btnOpenProject = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        btnSembrClose = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        pnlNewProject = new javax.swing.JPanel();
        lblProjectName = new javax.swing.JLabel();
        lblDirectoryName = new javax.swing.JLabel();
        txtProjectName = new javax.swing.JTextField();
        txtDirectoryName = new javax.swing.JTextField();
        btnSearchPath = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        btnCancelNewProject = new javax.swing.JButton();
        btnConfirmNewProject = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBackground(new java.awt.Color(240, 245, 250));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 51, 204));
        jLabel1.setIcon(new javax.swing.ImageIcon("/home/adriano/Projects/SEM-BR/trunk/sembr.dxf.presentation/icons/sembricon.jpg")); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
        jPanel2.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.background"));

        btnNewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dxfpresentation/resources/Document Blank1.png"))); // NOI18N
        btnNewProject.setPreferredSize(new java.awt.Dimension(73, 23));
        btnNewProject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNewProjectActionPerformed(evt);
            }
        });

        btnOpenProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dxfpresentation/resources/Folder1.png"))); // NOI18N
        btnOpenProject.setMaximumSize(new java.awt.Dimension(53, 31));
        btnOpenProject.setMinimumSize(new java.awt.Dimension(53, 31));
        btnOpenProject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnOpenProjectActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel3.setText("Novo projeto de simulação");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel4.setText("Abrir projeto de simulação");

        btnSembrClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dxfpresentation/resources/Close1.png"))); // NOI18N
        btnSembrClose.setMaximumSize(new java.awt.Dimension(53, 31));
        btnSembrClose.setMinimumSize(new java.awt.Dimension(53, 31));
        btnSembrClose.setPreferredSize(new java.awt.Dimension(73, 23));
        btnSembrClose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSembrCloseActionPerformed(evt);
            }
        });

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel5.setText("Sair do simulador");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnSembrClose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnNewProject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnOpenProject, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel3)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(130, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnNewProject, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(37, 37, 37)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnOpenProject, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnSembrClose, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(32, 32, 32))
        );

        pnlNewProject.setBorder(javax.swing.BorderFactory.createTitledBorder("Novo Projeto"));

        lblProjectName.setText("Nome do Projeto:");

        lblDirectoryName.setText("Diretório:");

        btnSearchPath.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dxfpresentation/resources/folder_explore.png"))); // NOI18N
        btnSearchPath.setText("Procurar...");
        btnSearchPath.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSearchPathActionPerformed(evt);
            }
        });

        btnCancelNewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dxfpresentation/resources/Cancelar.png"))); // NOI18N
        btnCancelNewProject.setText("Cancelar");
        btnCancelNewProject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelNewProjectActionPerformed(evt);
            }
        });

        btnConfirmNewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/dxfpresentation/resources/confirmar.png"))); // NOI18N
        btnConfirmNewProject.setText("Confirmar");
        btnConfirmNewProject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConfirmNewProjectActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlNewProjectLayout = new javax.swing.GroupLayout(pnlNewProject);
        pnlNewProject.setLayout(pnlNewProjectLayout);
        pnlNewProjectLayout.setHorizontalGroup(
            pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlNewProjectLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator1)
                    .addGroup(pnlNewProjectLayout.createSequentialGroup()
                        .addComponent(lblProjectName)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProjectName))
                    .addGroup(pnlNewProjectLayout.createSequentialGroup()
                        .addComponent(lblDirectoryName)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtDirectoryName, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlNewProjectLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnSearchPath, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlNewProjectLayout.createSequentialGroup()
                                .addComponent(btnConfirmNewProject)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(btnCancelNewProject, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        pnlNewProjectLayout.setVerticalGroup(
            pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlNewProjectLayout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addGroup(pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblProjectName)
                    .addComponent(txtProjectName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtDirectoryName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDirectoryName))
                .addGap(14, 14, 14)
                .addComponent(btnSearchPath)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlNewProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnConfirmNewProject)
                    .addComponent(btnCancelNewProject))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlNewProject, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pnlNewProject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnNewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNewProjectActionPerformed

        pnlNewProject.setVisible(true);
        this.setSize(565, 725);
    }//GEN-LAST:event_btnNewProjectActionPerformed

    private void btnOpenProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOpenProjectActionPerformed
        
        // close new project panel window
        pnlNewProject.setVisible(false);
        // reset to default window size
        this.setSize(565, 490);
        
        // looking for a project in default path
        fileChooser = new JFileChooser(System.getProperty("user.dir") + File.separator + "simulation");
        fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        fileChooser.setDialogTitle("Localizar Projeto");
        int returnVal = fileChooser.showOpenDialog(null);
        
        if (returnVal == JFileChooser.APPROVE_OPTION) 
        {
            String fullPath = fileChooser.getSelectedFile().toString();            
            List<String> list =  Arrays.asList(new File(fullPath).list());
                       
            if (list.contains("project_settings.xml"))
            {
                ProjectSettings projectSettings = new XmlFileReader(fullPath).getProjectSettings();
                projectSettings.setIsSaved(true);
                
                new MainPresentation(projectSettings).setVisible(true);
                this.dispose();
            }
            else
            {
                int choice = showConfirmMessage("Configuração de Projeto não encontrada neste diretório. " + 
                                                "Deseja utilizá-lo para criar um Projeto novo?");
            
                if (choice == 0) // true
                {
                    // create new project
                    new MainPresentation(fullPath).setVisible(true);
                    this.dispose();
                }
            }
        } 
    }//GEN-LAST:event_btnOpenProjectActionPerformed

    private void btnSembrCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSembrCloseActionPerformed
 
        System.exit(0);
    }//GEN-LAST:event_btnSembrCloseActionPerformed

    private void btnCancelNewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelNewProjectActionPerformed
        
        // this event does nothing, just close new project panel
        // close new project panel window
        pnlNewProject.setVisible(false);
        // reset to default window size
        this.setSize(565, 490);
    }//GEN-LAST:event_btnCancelNewProjectActionPerformed

    private void btnSearchPathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchPathActionPerformed
        
        // looking for a project in default path
        fileChooser = new JFileChooser(System.getProperty("user.dir") + File.separator + "simulation");
        // only directories
        fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        fileChooser.setDialogTitle("Escolher Diretório");
        
        int returnVal = fileChooser.showOpenDialog(null);
        // Teste de Seleção do Usuário
        if (returnVal == JFileChooser.APPROVE_OPTION) 
        {
           String fullFileName = fileChooser.getSelectedFile().toString();            
           txtDirectoryName.setText(fullFileName);
        } 
        else if (returnVal == JFileChooser.CANCEL_OPTION) 
        { }
    }//GEN-LAST:event_btnSearchPathActionPerformed

    /**
     * Event to create a new directory
     * 
     * @param evt
     * The new directory will store all related files simulation     
     */
    private void btnConfirmNewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConfirmNewProjectActionPerformed
                
        if ("".equals(txtProjectName.getText()) || "".equals(txtDirectoryName.getText()))
        {
            showWarningMessage("Diretório ou nome de Projeto não especificado!");
        }        
        else
        {
            File directory;
            File processingSubDirectory;
            File postProcessingSubDirectory;

            try
            {
                directory = new File(txtDirectoryName.getText() + File.separator + txtProjectName.getText());
                
                if (!directory.exists())
                {
                    directory.mkdir();
                    // create processing and postprocessing sub directories for current project
                    processingSubDirectory = new File(directory.getAbsolutePath() + File.separator + "pre_processing");
                    processingSubDirectory.mkdir();
                    postProcessingSubDirectory = new File(directory.getAbsolutePath() + File.separator + "post_processing");
                    postProcessingSubDirectory.mkdir();
                    new MainPresentation(directory.getAbsolutePath()).setVisible(true);
                    this.dispose();
                }
                else
                {
                    showWarningMessage("Diretório já existente!");
                }  
            }
            catch(Exception ex)
            { }    
        }
    }//GEN-LAST:event_btnConfirmNewProjectActionPerformed

    private void showWarningMessage(String message) {
    
        JOptionPane.showMessageDialog(new Frame(), 
                                          message, 
                                          "Mensagem de Alerta", 
                                          JOptionPane.WARNING_MESSAGE);
    }
    
    private int showConfirmMessage(String message) {
            
        return JOptionPane.showConfirmDialog(new Frame(), message, "Mensagem de Confirmação", JOptionPane.YES_NO_OPTION);
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(SembrInitialWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(SembrInitialWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(SembrInitialWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(SembrInitialWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the dialog
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                
                new SembrInitialWindow().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelNewProject;
    private javax.swing.JButton btnConfirmNewProject;
    private javax.swing.JButton btnNewProject;
    private javax.swing.JButton btnOpenProject;
    private javax.swing.JButton btnSearchPath;
    private javax.swing.JButton btnSembrClose;
    private javax.swing.JFileChooser fileChooser;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JLabel lblDirectoryName;
    private javax.swing.JLabel lblProjectName;
    private javax.swing.JPanel pnlNewProject;
    private javax.swing.JTextField txtDirectoryName;
    private javax.swing.JTextField txtProjectName;
    // End of variables declaration//GEN-END:variables
}
